	<?php if($this->session->flashdata('error_message')):?>
	<div class="notification error">
        <div class="notification-border-top"></div>
        <div class="notification-border-middle"> <span>Activity Not Found </span> </div>

        <div class="notification-border-bottom"></div>
     </div>
	<?php endif;?>
	
	<?php if($this->session->flashdata('delete_message')):?>
      <div class="notification success">
        <div class="notification-border-top"></div>
        <div class="notification-border-middle"> <span>Sucess Delete Data</span> </div>
        <div class="notification-border-bottom"></div>
      </div>
<?php endif;?>	  
	  
<div class="frame">
    <div class="frame-border-top"></div>
    <div class="frame-border-middle">
      <h1 class="header">Activity History</h1>

      <div class="accordion">
        <div class="accordion-tab">
          <h1><a href="#"><?=$customer;?></a></h1>
          <div class="accordion-tab-open-close"><?=anchor('customer','Back');?></div>
		  
          <div class="clear"></div>

        </div>
        <div class="accordion-panel">
          <div class="accordion-panel-border-top">
            <div class="accordion-panel-border-bottom">
              <form method="post" action="index.html" class="skinnable">
                <table border="0" cellpadding="0" cellspacing="0" class="grid">
                  <thead>
                    <tr class = "first" >
                      <td style="padding:10px"><?='Date'?></td>		
					  <td style="padding:10px"><?='Time'?></td>	
                      <td style="padding:10px"><?='Cust Name'?></td>
					  <td style="padding:10px"><?='Action'?></td>
                    </tr>
					
					
					
                  </thead>
                  <tbody>
				  <?php 
					$i=1;
					foreach($activity as $value):?>
                    <tr class="<?php if($i % 2==0) { ?>par<?php } else { ?>odd<?php } ?>">
					<td style="padding:10px"><?=$value['activity_date']?></td>		
					<td style="padding:10px"><?=$value['activity_time']?></td>	
                    <td style="padding:10px"><?=$value['customer_name']?></td>
                    <td class="col-row-action"><a href="<?=site_url('activity/remove/'.$value['id']);?>"><img src="<?=site_url();?>application/views/images/icon_delete.png" alt="delete" /></a></td>  
                    </tr>
				<?php 
					$i++;
					endforeach;?>
                  </tbody>
                </table>
                <div class="grid-panel padding-lr-5">
				  <?php if(!empty($pagination)):?>
						<?=$pagination;?>
				  <?php endif;?> 
                  <div class="clear"></div>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
      

      
    </div>
    <div class="frame-border-bottom-lined"></div>
  </div>